# Contributor: Gavin D. Howard <yzena.tech@gmail.com>
# Maintainer: Gavin D. Howard <yzena.tech@gmail.com>
pkgname=howard-bc
pkgver=3.1.3
pkgrel=0
pkgdesc="POSIX bc with GNU extensions"
url="https://github.com/gavinhoward/bc"
arch="all"
license="BSD-2-Clause"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/gavinhoward/bc/archive/$pkgver.tar.gz"
builddir="$srcdir/bc-$pkgver"

build() {
	PREFIX=/usr DESTDIR="$pkgdir" EXECSUFFIX=-howard ./configure.sh -GN
	make
}

check() {
	make test
}

package() {
	make install
}

sha512sums="7ed965b334af6e47ea83f4c292624b7e4300526886163827d726de88cff6a28f007ecf4cd883d23148320ec85400b9e3e361bb00f8fe648aec5ccb01d3f2a790  howard-bc-3.1.3.tar.gz"
